home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / share / gtksourceview-2.0 / language-specs / desktop.lang < prev    next >
Extensible Markup Language  |  2009-10-02  |  11KB  |  293 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.  
  4.  Author: Paolo Maggi <paolo.maggi@polito.it>
  5.  Copyright (C) 2003 Paolo Maggi <paolo.maggi@polito.it>
  6.  Copyright (C) 2006 Luca Cavalli <lcavalli@cvs.gnome.org>
  7.  
  8.  This library is free software; you can redistribute it and/or
  9.  modify it under the terms of the GNU Library General Public
  10.  License as published by the Free Software Foundation; either
  11.  version 2 of the License, or (at your option) any later version.
  12.  
  13.  This library is distributed in the hope that it will be useful,
  14.  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  Library General Public License for more details.
  17.  
  18.  You should have received a copy of the GNU Library General Public
  19.  License along with this library; if not, write to the
  20.  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  21.  Boston, MA 02111-1307, USA.
  22.  
  23. -->
  24. <language id="desktop" _name=".desktop" version="2.0" _section="Others">
  25.   <metadata>
  26.     <property name="mimetypes">application/x-gnome-app-info;application/x-desktop</property>
  27.     <property name="globs">*.desktop;*.kdelnk</property>
  28.     <property name="line-comment-start">#</property>
  29.   </metadata>
  30.  
  31.   <styles>
  32.     <style id="group" _name="Group" map-to="def:keyword"/>
  33.     <!-- Translators: "Key" here means key value, that is the left hand
  34.          side in a myoption=something line in a .desktop file -->
  35.     <style id="key" _name="Key" map-to="def:type"/>
  36.     <style id="language" _name="Translation" map-to="def:decimal"/>
  37.     <style id="number" _name="Number" map-to="def:floating-point"/>
  38.     <style id="boolean" _name="Boolean" map-to="def:floating-point"/>
  39.     <style id="exec-parameter" _name="Exec parameter" map-to="def:floating-point"/>
  40.     <style id="encoding" _name="Encoding" map-to="def:floating-point"/>
  41.     <style id="category" _name="Category" map-to="def:floating-point"/>
  42.   </styles>
  43.  
  44.   <definitions>
  45.     <define-regex id="key-suffix">(?=(\[[a-zA-Z_]+\])?\s*=\s*)</define-regex>
  46.  
  47.     <context id="group" style-ref="group">
  48.       <start>^\[</start>
  49.       <end>\]$</end>
  50.     </context>
  51.  
  52.     <context id="language" style-ref="language">
  53.       <match>\[[a-zA-Z_]+\]</match>
  54.     </context>
  55.  
  56.     <context id="boolean" style-ref="boolean">
  57.       <keyword>true</keyword>
  58.       <keyword>false</keyword>
  59.     </context>
  60.  
  61.     <context id="exec-parameter" style-ref="exec-parameter">
  62.       <match>%[fFuUdDnNimckv%]</match>
  63.     </context>
  64.  
  65.     <context id="encoding" style-ref="encoding">
  66.       <keyword>UTF\-8</keyword>
  67.       <keyword>Legacy\-Mixed</keyword>
  68.     </context>
  69.  
  70.     <context id="number" style-ref="number">
  71.       <match>(.\b[0-9]+([Ll]?|[Ff]?)\b)|(b[0-9]*\.\W)</match>
  72.     </context>
  73.  
  74.     <context id="standard-key" style-ref="key">
  75.       <prefix>^_?</prefix>
  76.       <suffix>\%{key-suffix}</suffix>
  77.       <keyword>Actions</keyword>
  78.       <keyword>BinaryPattern</keyword>
  79.       <keyword>Categories</keyword>
  80.       <keyword>Comment</keyword>
  81.       <keyword>DefaultApp</keyword>
  82.       <keyword>Dev</keyword>
  83.       <keyword>Encoding</keyword>
  84.       <keyword>Exec</keyword>
  85.       <keyword>Extensions</keyword>
  86.       <keyword>FilePattern</keyword>
  87.       <keyword>FSType</keyword>
  88.       <keyword>GenericName</keyword>
  89.       <keyword>Hidden</keyword>
  90.       <keyword>Icon</keyword>
  91.       <keyword>MapNotify</keyword>
  92.       <keyword>MimeType</keyword>
  93.       <keyword>MiniIcon</keyword>
  94.       <keyword>MountPoint</keyword>
  95.       <keyword>Name</keyword>
  96.       <keyword>NoDisplay</keyword>
  97.       <keyword>NotShowIn</keyword>
  98.       <keyword>OnlyShowIn</keyword>
  99.       <keyword>Path</keyword>
  100.       <keyword>Patterns</keyword>
  101.       <keyword>Protocols</keyword>
  102.       <keyword>ReadOnly</keyword>
  103.       <keyword>SortOrder</keyword>
  104.       <keyword>StartupNotify</keyword>
  105.       <keyword>StartupWMClass</keyword>
  106.       <keyword>SwallowExec</keyword>
  107.       <keyword>SwallowTitle</keyword>
  108.       <keyword>Terminal</keyword>
  109.       <keyword>TerminalOptions</keyword>
  110.       <keyword>TryExec</keyword>
  111.       <keyword>Type</keyword>
  112.       <keyword>UnmountIcon</keyword>
  113.       <keyword>URL</keyword>
  114.       <keyword>Version</keyword>
  115.     </context>
  116.  
  117.     <context id="non-standard-key" style-ref="key">
  118.       <match>^_?X\-[a-zA-Z\-]+\%{key-suffix}</match>
  119.     </context>
  120.  
  121.     <context id="key-categories" end-at-line-end="true">
  122.       <start>^(_?Categories)\%{key-suffix}</start>
  123.       <include>
  124.         <context sub-pattern="1" where="start" style-ref="key"/>
  125.         <context style-ref="category">
  126.           <keyword>2DGraphics</keyword>
  127.           <keyword>3DGraphics</keyword>
  128.           <keyword>Accessibility</keyword>
  129.           <keyword>ActionGame</keyword>
  130.           <keyword>AdventureGame</keyword>
  131.           <keyword>Amusement</keyword>
  132.           <keyword>Applet</keyword>
  133.           <keyword>ArcadeGame</keyword>
  134.           <keyword>Archiving</keyword>
  135.           <keyword>ArtificialIntelligence</keyword>
  136.           <keyword>Art</keyword>
  137.           <keyword>Astronomy</keyword>
  138.           <keyword>Audio</keyword>
  139.           <keyword>AudioVideoEditing</keyword>
  140.           <keyword>AudioVideo</keyword>
  141.           <keyword>Biology</keyword>
  142.           <keyword>BlocksGame</keyword>
  143.           <keyword>BoardGame</keyword>
  144.           <keyword>Building</keyword>
  145.           <keyword>Calculator</keyword>
  146.           <keyword>Calendar</keyword>
  147.           <keyword>CardGame</keyword>
  148.           <keyword>Chart</keyword>
  149.           <keyword>Chat</keyword>
  150.           <keyword>Chemistry</keyword>
  151.           <keyword>Clock</keyword>
  152.           <keyword>Compression</keyword>
  153.           <keyword>ComputerScience</keyword>
  154.           <keyword>ConsoleOnly</keyword>
  155.           <keyword>Construction</keyword>
  156.           <keyword>ContactManagement</keyword>
  157.           <keyword>Core</keyword>
  158.           <keyword>Database</keyword>
  159.           <keyword>DataVisualization</keyword>
  160.           <keyword>Debugger</keyword>
  161.           <keyword>DesktopSettings</keyword>
  162.           <keyword>Development</keyword>
  163.           <keyword>Dialup</keyword>
  164.           <keyword>Dictionary</keyword>
  165.           <keyword>DiscBurning</keyword>
  166.           <keyword>Documentation</keyword>
  167.           <keyword>Economy</keyword>
  168.           <keyword>Education</keyword>
  169.           <keyword>Electricity</keyword>
  170.           <keyword>Electronics</keyword>
  171.           <keyword>Email</keyword>
  172.           <keyword>Emulator</keyword>
  173.           <keyword>Engineering</keyword>
  174.           <keyword>FileManager</keyword>
  175.           <keyword>Filesystem</keyword>
  176.           <keyword>FileTools</keyword>
  177.           <keyword>FileTransfer</keyword>
  178.           <keyword>Finance</keyword>
  179.           <keyword>FlowChart</keyword>
  180.           <keyword>Game</keyword>
  181.           <keyword>Geography</keyword>
  182.           <keyword>Geology</keyword>
  183.           <keyword>Geoscience</keyword>
  184.           <keyword>GNOME</keyword>
  185.           <keyword>Graphics</keyword>
  186.           <keyword>GTK</keyword>
  187.           <keyword>GUIDesigner</keyword>
  188.           <keyword>HamRadio</keyword>
  189.           <keyword>HardwareSettings</keyword>
  190.           <keyword>History</keyword>
  191.           <keyword>IDE</keyword>
  192.           <keyword>ImageProcessing</keyword>
  193.           <keyword>InstantMessaging</keyword>
  194.           <keyword>IRCClient</keyword>
  195.           <keyword>Java</keyword>
  196.           <keyword>KDE</keyword>
  197.           <keyword>KidsGame</keyword>
  198.           <keyword>Languages</keyword>
  199.           <keyword>Literature</keyword>
  200.           <keyword>LogicGame</keyword>
  201.           <keyword>Math</keyword>
  202.           <keyword>MedicalSoftware</keyword>
  203.           <keyword>Midi</keyword>
  204.           <keyword>Mixer</keyword>
  205.           <keyword>Monitor</keyword>
  206.           <keyword>Motif</keyword>
  207.           <keyword>Music</keyword>
  208.           <keyword>Network</keyword>
  209.           <keyword>News</keyword>
  210.           <keyword>NumericalAnalysis</keyword>
  211.           <keyword>OCR</keyword>
  212.           <keyword>Office</keyword>
  213.           <keyword>P2P</keyword>
  214.           <keyword>PackageManager</keyword>
  215.           <keyword>ParallelComputing</keyword>
  216.           <keyword>PDA</keyword>
  217.           <keyword>Photography</keyword>
  218.           <keyword>Physics</keyword>
  219.           <keyword>Player</keyword>
  220.           <keyword>Presentation</keyword>
  221.           <keyword>Printing</keyword>
  222.           <keyword>Profiling</keyword>
  223.           <keyword>ProjectManagement</keyword>
  224.           <keyword>Publishing</keyword>
  225.           <keyword>Qt</keyword>
  226.           <keyword>RasterGraphics</keyword>
  227.           <keyword>Recorder</keyword>
  228.           <keyword>RemoteAccess</keyword>
  229.           <keyword>RevisionControl</keyword>
  230.           <keyword>Robotics</keyword>
  231.           <keyword>RolePlaying</keyword>
  232.           <keyword>Scanning</keyword>
  233.           <keyword>Science</keyword>
  234.           <keyword>Screensaver</keyword>
  235.           <keyword>Security</keyword>
  236.           <keyword>Sequencer</keyword>
  237.           <keyword>Settings</keyword>
  238.           <keyword>Shell</keyword>
  239.           <keyword>Simulation</keyword>
  240.           <keyword>SportsGame</keyword>
  241.           <keyword>Sports</keyword>
  242.           <keyword>Spreadsheet</keyword>
  243.           <keyword>StrategyGame</keyword>
  244.           <keyword>System</keyword>
  245.           <keyword>Telephony</keyword>
  246.           <keyword>TelephonyTools</keyword>
  247.           <keyword>TerminalEmulator</keyword>
  248.           <keyword>TextEditor</keyword>
  249.           <keyword>TextTools</keyword>
  250.           <keyword>Translation</keyword>
  251.           <keyword>TrayIcon</keyword>
  252.           <keyword>Tuner</keyword>
  253.           <keyword>TV</keyword>
  254.           <keyword>Utility</keyword>
  255.           <keyword>VectorGraphics</keyword>
  256.           <keyword>VideoConference</keyword>
  257.           <keyword>Video</keyword>
  258.           <keyword>Viewer</keyword>
  259.           <keyword>WebBrowser</keyword>
  260.           <keyword>WebDevelopment</keyword>
  261.           <keyword>WordProcessor</keyword>
  262.         </context>
  263.       </include>
  264.     </context>
  265.  
  266.     <context id="key">
  267.       <include>
  268.         <context ref="key-categories"/>
  269.         <context ref="standard-key"/>
  270.         <context ref="non-standard-key"/>
  271.       </include>
  272.     </context>
  273.  
  274.     <context id="desktop">
  275.       <include>
  276.         <context ref="def:shell-like-comment"/>
  277.         <context ref="group"/>
  278.         <context ref="key"/>
  279.         <context id="lang-and-value" end-at-line-end="true">
  280.           <start>(\[[a-zA-Z_]+\])?\s*=\s*</start>
  281.           <include>
  282.             <context sub-pattern="1" where="start" style-ref="language"/>
  283.             <context ref="boolean"/>
  284.             <context ref="exec-parameter"/>
  285.             <context ref="encoding"/>
  286.             <context ref="number"/>
  287.           </include>
  288.         </context>
  289.       </include>
  290.     </context>
  291.   </definitions>
  292. </language>
  293.